配置

将一个markdown文档变成首页

---
home: true
heroImage: ../.vuepress/public/images/logo.png
heroText: '🏷️Hi : )🏷️'
tagline: 'Aeroxian的Vuepress Blog🏷️'
actions:
  - text: 👉ENTRY
    link: /topicNav/
    type: primary
---

导航设计

点击进去之后,能够浏览到所有的专题分类的笔记

image-20211126094052080

增加了/topicNav/的功能,由于vuepress在访问/topicNav/ 需要有一个默认的首页,所以建立了一个topicNav文件夹

{
    "/topicNav/":[
        {
            "children":[
                {
                    "text":"Vuepress博客搭建",
                    "link":"/vuepress/"
                }
            ]
        }
    ],
    "/vuepress/":[
        {
            "text":"Vuepress博客搭建",
            "children":[
                {
                    "text":"01 搭建vuepress2",
                    "link":"/vuepress/01 搭建vuepress2.md"
                },
                {
                    "text":"02 图片存放路径",
                    "link":"/vuepress/02 图片存放路径.md"
                },
                {
                    "text":"03 侧边栏配置",
                    "link":"/vuepress/03 侧边栏配置.md"
                },
                {
                    "text":"04 首页配置",
                    "link":"/vuepress/04 首页配置.md"
                }
            ]
        }
    ]
}

参考

Frontmatter | VuePress (vuejs.org)open in new window